<extend name="Public/common"/>
<block name="body">
    <style>
        tr {
            height: 41px;
        }

        .fa {
            cursor: pointer;
        }

        .form-control {
            margin-top: 7px;
        }
    </style>
    <div class="wrapper wrapper-content animated fadeInRight">
        <div class="row">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>订单详情</h5>
                    <div class="ibox-tools">
                        <button type="button" class="btn btn-outline btn-primary btn-xs" onclick="history.go(-1);">返回
                        </button>
                    </div>
                </div>
                <div class="ibox-content">
                    <table class="table table-bordered" style="width: 80%;margin: auto;">
                        <foreach name="order_lists" item="order_list">
                            <tbody>
                            <tr>
                                <th colspan="6" style="text-align: center;">订单编号：{$order_list.order_sn}</th>
                            </tr>
                            <tr>
                                <th>订单类型：</th>
                                <td colspan="5">{$order_list.order_types}</td>
                            </tr>
                            <tr>
                                <th>订单折扣后实际支付价格：</th>
                                <td style="color: #ff5809;">{$order_list.payment_prices}</td>
                            </tr>
                            <tr>
                                <th>用户：</th>
                                <td>{$order_list.user_ids}</td>
                            </tr>
                            <tr>
                                <th>商品：</th>
                                <td>{$order_list.goods_names}</td>
                            </tr>
                            <tr>
                                <th>收货地址：</th>
                                <td>{$order_list.address_ids}</td>
                            </tr>
                            <tr>
                                <th>商品件数：</th>
                                <td>{$order_list.goods_nums}</td>
                            </tr>
                            <tr>
                                <th>状态：</th>
                                <td>
                                    <switch name="order_list.order_state">
                                        <case value="0">处理中</case>
                                        <case value="1"><span style="color: green;">已完成</span></case>
                                        <case value="2"><span style="color: red;">已取消</span></case>
                                        <case value="3"><span style="color: #dedede"></span>分配的</case>
                                    </switch>
                                </td>
                            </tr>
                            </tbody>
                        </foreach>
                    </table>
                </div>
            </div>
        </div>
    </div>
</block>
